﻿CollectSourceFiles(${CMAKE_CURRENT_SOURCE_DIR} PRIVATE_SOURCES)
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})

ADD_DEFINITIONS(-DSQLITE_USE_LEGACY_STRUCT)

add_library (sqlitecpp STATIC ${PRIVATE_SOURCES})

target_include_directories(sqlitecpp
    PUBLIC 
		${CMAKE_CURRENT_SOURCE_DIR}/include)

target_link_libraries(sqlitecpp PRIVATE emoney-core-interface PUBLIC sqlite3 )
target_link_libraries(sqlitecpp PUBLIC ${CMAKE_THREAD_LIBS_INIT})
set_target_properties(sqlitecpp PROPERTIES FOLDER "dep")
set_property(TARGET sqlitecpp PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")